package org.springblade.modules.repair.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springblade.modules.repair.enums.MaintainPlanContentEnum;

/**
 * @author zcc
 * @version 1.0
 * @date 2021/6/4 14:25
 */
@ApiModel("任务类型数量model")
@Data
public class MaintainPlanContentTypeCountVo {

	@ApiModelProperty("1:保养，2：维修3 ：救援4：配件")
	private Integer status;

	private String statusName;

	@ApiModelProperty("数量")
	private Integer counts;

	public void setStatus(Integer status) {
		this.status = status;
		if (status == 10) {
			this.statusName = "已完成";
		} else {
			this.statusName = MaintainPlanContentEnum.getName(status);
		}
	}
}
